window.Cookie = {
  read: (name) ->
    nameEQ = name + "="
    ca = document.cookie.split(";")
    for i in [0..ca.length]
      c = ca[i]
      while c.charAt(0) == ' '
        c = c.substring( 1, c.length )
      if c.indexOf(nameEQ) == 0
        return c.substring( nameEQ.length, c.length )
    return null
}